package cn.ierror.common.enums;

/**
 * Created by Administrator on 2017/4/8.
 */
public enum TravelTypeEnum {
    SCENICSPOT(1, "景区"),
    HOTEL(2, "酒店"),
    TOURISTAGENCY(3, "旅行社"),
    VILLAGETRAVEL(4, "农家乐"),
    GUIDE(5, "导游"),
    SHOPPING(6, "购物"),
    CATERING(7, "餐饮"),
    PUBLIC_FACILITY(8, "公共服务"),
    ENTERTAINMENT(10, "休闲娱乐"),
    /*STATION(11, "酒店"),*/
    VIDEO(12, "监控点位"),
    /*HOTEL_ROOM_CONFERENCE(13, "酒店"),
    VEHICLE(14, "酒店"),
    TRAFFIC(15, "酒店"),*/
    INN(16, "民宿");
   /* EMERGENCY(32, "酒店");*/

    private Integer type;

    private String String;

    TravelTypeEnum(Integer type, String string) {
        this.type = type;
        this.String = string;
    }

    public Integer getType() {
        return type;
    }

    public java.lang.String getString() {
        return String;
    }

    public static TravelTypeEnum typeOf(Integer type) {
        for (TravelTypeEnum typeEnum : values()) {
            if (typeEnum.getType() == type) {
                return typeEnum;
            }
        }
        return null;
    }

}
